import { usenowDate } from '../util/util';
var storage = window.localStorage;


/**
 * 
 * @returns 项目管理colmun
 */
export function use_htmb_print_colmun() {
  return [
    { label: "合同名称", value: "测试合同",key:"htmc"},
    { label: "甲方全称", value: "江西一舟电子电子电子有限公司",key:"jfqc"},
    { label: "乙方全称", value: "某某某公司",key:"yfqc"},
  ]
}


/**
 * 
 * @returns 协议模板管理colmun
 */
export function use_xymb_initcolmun() {
  return [
    { show: true, ellipsis: true, dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },
    { show: true, ellipsis: true, dataIndex: "create_by", title: "创建者", key: "create_by", width: 100 },
    { show: true, ellipsis: true, dataIndex: "create_time", title: "创建时间", key: "create_time", width: 160 },
    { show: true, ellipsis: true, dataIndex: "htmbmc", title: "模板名称", key: "mbmc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "htmbbh", title: "模板编码", key: "mbbh"}
    // { show: true, ellipsis: true, dataIndex: "htmbzt", title: "模板内容", key: "mbnr"},
  ]
}

/**
 * 
 * @returns 协议模板管理formdata
 */
export function use_xymb_initformdata() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '协议模板信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    mbbh: { ifdb: true, bt: false, value: "", title: '协议模板编码', dataIndex: 'mbbh', inputType: "input_item",disabled:true },
    mbmc: { ifdb: true, bt: false, value: "", title: '协议模板名称', dataIndex: 'mbmc', inputType: "input_item" },
    mbnr: { ifdb: true, bt: false, value: "", title: '协议模板内容', dataIndex: 'mbnr', inputType: "textarea_item",
      datas_key: 'dict_htmb',
    },
  }
}

/**
 * 
 * @returns 协议模板管理formdata
 */
export function use_xymb_initformdata_view() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '合同模板信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    mbbh: { ifdb: true, bt: false, value: "", title: '协议模板编码', dataIndex: 'mbbh', inputType: "view_item",disabled:true },
    mbmc: { ifdb: true, bt: false, value: "", title: '协议模板名称', dataIndex: 'mbmc', inputType: "view_item" },
    mbnr: { ifdb: true, bt: false, value: "", title: '协议模板内容', dataIndex: 'mbnr', inputType: "textarea_item",
      datas_key: 'dict_htmb',
    },
  }
}


/**
 * 
 * @returns 协议管理colmun
 */
export function use_xygl_initcolmun() {
  return [
    { show: true, ellipsis: true, dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },
    { show: true, ellipsis: true, dataIndex: "xybh", title: "协议编号", key: "xybh", width: 100 },
    { show: true, ellipsis: true, dataIndex: "xymc", title: "协议名称", key: "xymc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "syfw", title: "适用范围", key: "syfw", width: 100 },
    { show: true, ellipsis: true, dataIndex: "xybb", title: "现行版本", key: "xybb", width: 100 },
    // { show: true, ellipsis: true, dataIndex: "wjfj", title: "文档附件", key: "wjfj", width: 100 },
    { show: true, ellipsis: true, dataIndex: "bz", title: "备注", key: "bz" },
    // { show: true, ellipsis: true, dataIndex: "htmbzt", title: "模板内容", key: "mbnr"},
  ]
}

/**
 * 
 * @returns 协议模板管理formdata
 */
export function use_xygl_initformdata() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '协议文件信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    xybh: { ifdb: true, bt: false, value: "", title: '协议编号', dataIndex: 'xybh', inputType: "input_item",disabled:true },
    xymc: { ifdb: true, bt: false, value: "", title: '协议名称', dataIndex: 'xymc', inputType: "input_item" },
    xybb: { ifdb: true, bt: false, value: "1.00", title: '现行版本', dataIndex: 'xybb', inputType: "input_item" ,disabled:true},
    
    syfw: { ifdb: true, bt: true, value: [], title: '适用范围', dataIndex: 'syfw',  inputType: "select_item_mutiple", mode: "multiple",
         datas_key: "dict_syfw", oneline: true, line_height: "4rem" },
    fj: { ifdb: true, bt: true, value: "", title: '文档附件', dataIndex: 'fj', inputType: "upload_dgfj_item",style:{height:"2.8vw"} ,oneline:true},
    
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item" },
  }
}

/**
 * 
 * @returns 协议管理formdata view
 */
export function use_xygl_initformdata_view() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '合同模板信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    xybh: { ifdb: true, bt: false, value: "", title: '协议编号', dataIndex: 'xybh', inputType: "view_item",disabled:true },
    xymc: { ifdb: true, bt: false, value: "", title: '协议名称', dataIndex: 'xymc', inputType: "view_item" },
    xybb: { ifdb: true, bt: false, value: "", title: '现行版本', dataIndex: 'xybb', inputType: "view_item" },
    syfw: { ifdb: true, bt: false, value: "", title: '适用范围', dataIndex: 'syfw', inputType: "view_item" },
    
    fj: { ifdb: true, bt: false, value: "", title: '文档附件', dataIndex: 'fj', inputType: "view_fj_item",style:{height:"1.25vw"} },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "view_item" },
  }
}


/**
 * 
 * @returns 协议管理colmun
 */
export function use_xygl_lsmx_initcolmun() {
  return [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '发布日期', dataIndex: 'fbrq', inputType: "readonly",width:"200px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '版本号', dataIndex: 'bbh', inputType: "readonly",width:"100px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '上传附件', dataIndex: 'scfj', inputType: "view_fj_item",style:{height:"1.25vw"} },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '备注', dataIndex: 'bz', inputType: "readonly" },

  ]
}





/**
 * 
 * @returns 合同模板管理colmun
 */
export function use_htmb_initcolmun() {
  return [
    { show: true, ellipsis: true, dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },
    { show: true, ellipsis: true, dataIndex: "htmbmc", title: "模板名称", key: "mbmc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "htmbbh", title: "模板编码", key: "mbbh"}
    // { show: true, ellipsis: true, dataIndex: "htmbzt", title: "模板内容", key: "mbnr"},
  ]
}

/**
 * 
 * @returns 合同模板管理formdata
 */
export function use_htmb_initformdata() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '合同模板信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    mbbh: { ifdb: true, bt: false, value: "", title: '合同模板编码', dataIndex: 'mbbh', inputType: "input_item",disabled:true },
    mbmc: { ifdb: true, bt: false, value: "", title: '合同模板名称', dataIndex: 'mbmc', inputType: "input_item" },
    mbnr: { ifdb: true, bt: false, value: "", title: '合同模板内容', dataIndex: 'mbnr', inputType: "textarea_item",
      datas_key: 'dict_htmb',
    },
  }
}

/**
 * 
 * @returns 项目管理colmun
 */
export function use_htmb_initformdata_view() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '项目信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: false, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "input_item", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "date_item", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "input_item", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "date_item", disabled: true },
    mbbh: { ifdb: true, bt: false, value: "", title: '合同模板编码', dataIndex: 'mbbh', inputType: "view_item" },
    mbmc: { ifdb: true, bt: false, value: "", title: '合同模板名称', dataIndex: 'mbmc', inputType: "view_item" },
    mbnr: { ifdb: true, bt: false, value: "新建", title: '合同模板内容', dataIndex: 'mbnr', inputType: "view_tinymce_item" },
  }
}


/**
 * 
 * @returns 项目管理物料明细mxlist columm
 */
export function use_htmb_mx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段名称', dataIndex: 'zdmc', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: '字段值', dataIndex: 'zdz', inputType: "textarea_item" },
  ]
  return colmuns
}



/**
 * 
 * @returns 合同台账colmun
 */
export function use_httz_initcolmun() {
  return [
    { show: true, ellipsis: true, dataIndex: "xuhao", title: "序号", key: "xuhao", width: 67 },
    { show: true, ellipsis: true, dataIndex: "htbh", title: "合同编号", key: "htbh", width: 100 },
    { show: true, ellipsis: true, dataIndex: "htmc", title: "合同名称", key: "htmc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "xmmc", title: "项目名称", key: "xmmc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "create_by", title: "创建人", key: "create_by", width: 100 },
    { show: true, ellipsis: true, dataIndex: "create_time", title: "创建时间", key: "create_time", width: 100 },
    { show: true, ellipsis: true, dataIndex: "jfqc", title: "甲方", key: "jfqc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "yfqc", title: "乙方", key: "yfqc", width: 100 },
    { show: true, ellipsis: true, dataIndex: "htzt", title: "合同状态", key: "htzt"},
  ]
}

/**
 * 
 * @returns  合同台账编辑主表
 */
export function use_httz_initformdata() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '合同基本信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: true, value: storage.ygxm, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.ygxm, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    htzt: { ifdb: true, bt: false, value: "新建", title: '合同状态', dataIndex: 'htzt', inputType: "readonly" },
    htmc: { ifdb: true, bt: true, value: "", title: '合同名称', dataIndex: 'htmc', inputType: "input_item" },
    htbh: { ifdb: true, bt: false, value: "", title: '合同编号', dataIndex: 'htbh', inputType: "readonly" },
    qsrq: { ifdb: true, bt: false, value: usenowDate(), title: '签署日期', dataIndex: 'qsrq', inputType: "date_item" },
    htlx: { ifdb: true, bt: true, value: "", title: '合同类型', dataIndex: 'htlx', inputType: "select_item_new" ,
      datas_key: 'dict_htlx',
      popup_tansferarr: [
        { origin: "label", target: "htlx" },
      ],
    },
    htje: { ifdb: true, bt: true, value: "", title: '合同金额', dataIndex: 'htje', inputType: "input_number_item" },
    xybh: { ifdb: true, bt: false, value: "", title: '协议编号', dataIndex: 'xybh', inputType: "popup_item_datas_new" ,
      popup_maintitle: '协议编号', 
      popup_column: [
        { title: "协议编号", key: "xybh" },
        { title: "协议名称", key: "xymc" },
      ],
      datas_key: 'query_xy',
      popup_tansferarr: [
        { origin: "xybh", target: "xybh" },
        { origin: "id", target: "xyid" },
        { origin: "xymc", target: "xymc" },
      ], },
    xyid: { ifdb: true, bt: false, value: "", title: '协议ID', dataIndex: 'xyid', inputType: "none" },
    xymc: { ifdb: true, bt: false, value: "", title: '协议名称', dataIndex: 'xymc', inputType: "readonly" },
    xmid: { ifdb: true, bt: false, value: "", title: '项目id', dataIndex: 'xmid', inputType: "none" },
    xmbh: { ifdb: true, bt: false, value: "", title: '项目编号', dataIndex: 'xmbh', inputType: "popup_item_datas_new" ,
      popup_maintitle: '项目编号', 
      popup_column: [
        { title: "项目编号", key: "xmbh" },
        { title: "项目名称", key: "xmmc" },
      ],
      datas_key: 'query_xm',
      popup_tansferarr: [
        { origin: "xmbh", target: "xmbh" },
        { origin: "id", target: "xmid" },
        { origin: "xmmc", target: "xmmc" },
      ], },
    xmmc: { ifdb: true, bt: false, value: "", title: '项目名称', dataIndex: 'xmmc', inputType: "readonly" },
    xmid: { ifdb: true, bt: false, value: "", title: '项目id', dataIndex: 'xmid', inputType: "none" },
    jfqc: { ifdb: true, bt: false, value: "甬舟能源技术股份有限公司", title: '甲方全称', dataIndex: 'jfqc', inputType: "readonly" },
    yfqc: { ifdb: true, bt: false, value: "", title: '乙方全称', dataIndex: 'yfqc', inputType: "popup_item_datas_new" ,
      popup_maintitle: '乙方全称', 
      popup_column: [
        { title: "企业类型", key: "qylx" },
        { title: "省份", key: "sf" },
        { title: "供应商名称", key: "label" },
        { title: "注册地址", key: "zcdz" },

      ],
      datas_key: 'query_gys',
      popup_tansferarr: [
        { origin: "label", target: "yfqc" },
        { origin: "value", target: "yfid" },
      ], },
    yfid: { ifdb: true, bt: false, value: "", title: '乙方id', dataIndex: 'yfid', inputType: "none" },
    cclx: { ifdb: true, bt: false, value: "", title: '供货类型', dataIndex: 'cclx', inputType: "select_item_new" ,
      datas_key: 'dict_gylx',
      popup_tansferarr: [
        { origin: "label", target: "cclx" },
      ],
    },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "select_item_new" ,
      datas_key: 'dict_fkfs',
      popup_tansferarr: [
        { origin: "label", target: "fkfs" },
      ],
    },
    
    
    gzts: { ifdb: true, bt: false, value: "", title: '挂账天数', dataIndex: 'gzts', inputType: "input_item" },
    htmbmc: { ifdb: true, bt: false, value: "", title: '合同模板', dataIndex: 'htmbmc', inputType: "select_item_new",
      datas_key: 'query_htmb',
      popup_tansferarr: [
        { origin: "label", target: "htmbmc" },
        { origin: "value", target: "htmbid" },
      ],
    },
    htmbid: { ifdb: true, bt: false, value: "", title: '合同模板id', dataIndex: 'htmbid', inputType: "none" },
    shzt: { ifdb: true, bt: false, value: "", title: '审核状态', dataIndex: 'shzt', inputType: "none" },
    
    htgzfj: { ifdb: true, bt: false, value: "", title: '合同盖章附件', dataIndex: 'htgzfj', inputType: "upload_fj_item",style:{height:"2.4rem"} },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "input_text_item"},
  }
}




/**
 * 
 * @returns 合同台账只读主表
 */
export function use_httz_initformdata_view() {
  return {
    htmb_title: { ifdb: false, bt: false, value: "", title: '项目信息', dataIndex: 'htmb_title', inputType: "title_item" },
    id: { ifdb: true, bt: false, value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    create_by: { ifdb: true, bt: true, value: storage.yghtmb, title: '创建者', dataIndex: 'create_by', inputType: "none", disabled: true },
    create_time: { ifdb: false, bt: false, value: usenowDate(), title: '创建时间', dataIndex: 'create_time', inputType: "none", disabled: true },
    update_by: { ifdb: true, bt: false, value: storage.yghtmb, title: '修改者', dataIndex: 'update_by', inputType: "none", disabled: true },
    update_time: { ifdb: false, bt: false, value: usenowDate(), title: '修改时间', dataIndex: 'update_time', inputType: "none", disabled: true },
    htzt: { ifdb: true, bt: false, value: "新建", title: '合同状态', dataIndex: 'htzt', inputType: "view_item" },
    htmc: { ifdb: true, bt: true, value: "", title: '合同名称', dataIndex: 'htmc', inputType: "view_item" },
    htbh: { ifdb: true, bt: false, value: "", title: '合同编号', dataIndex: 'htbh', inputType: "view_item" },
    qsrq: { ifdb: true, bt: false, value: usenowDate(), title: '签署日期', dataIndex: 'qsrq', inputType: "view_item" },
    htlx: { ifdb: true, bt: true, value: "", title: '合同类型', dataIndex: 'htlx', inputType: "view_item" ,
      datas_key: 'dict_htlx',
      popup_tansferarr: [
        { origin: "label", target: "htlx" },
      ],
    },
    htje: { ifdb: true, bt: true, value: "", title: '合同金额', dataIndex: 'htje', inputType: "view_item" },
    xybh: { ifdb: true, bt: false, value: "", title: '协议编号', dataIndex: 'xybh', inputType: "view_item" ,
      popup_maintitle: '协议编号', 
      popup_column: [
        { title: "协议编号", key: "xybh" },
        { title: "协议名称", key: "xymc" },
      ],
      datas_key: 'query_xy',
      popup_tansferarr: [
        { origin: "xybh", target: "xybh" },
        { origin: "id", target: "xyid" },
        { origin: "xymc", target: "xymc" },
      ], },
    xyid: { ifdb: true, bt: false, value: "", title: '协议ID', dataIndex: 'xyid', inputType: "none" },
    xymc: { ifdb: true, bt: false, value: "", title: '协议名称', dataIndex: 'xymc', inputType: "view_item" },
    xmid: { ifdb: true, bt: false, value: "", title: '项目id', dataIndex: 'xmid', inputType: "none" },
    xmbh: { ifdb: true, bt: false, value: "", title: '项目编号', dataIndex: 'xmbh', inputType: "view_item" ,
      popup_maintitle: '项目编号', 
      popup_column: [
        { title: "项目编号", key: "xmbh" },
        { title: "项目名称", key: "xmmc" },
      ],
      datas_key: 'query_xm',
      popup_tansferarr: [
        { origin: "xmbh", target: "xmbh" },
        { origin: "id", target: "xmid" },
        { origin: "xmmc", target: "xmmc" },
      ], },
    xmmc: { ifdb: true, bt: false, value: "", title: '项目名称', dataIndex: 'xmmc', inputType: "view_item" },
    xmid: { ifdb: true, bt: false, value: "", title: '项目id', dataIndex: 'xmid', inputType: "none" },
    jfqc: { ifdb: true, bt: false, value: "甬舟能源技术股份有限公司", title: '甲方全称', dataIndex: 'jfqc', inputType: "view_item" },
    yfqc: { ifdb: true, bt: false, value: "", title: '乙方全称', dataIndex: 'yfqc', inputType: "view_item" ,
      popup_maintitle: '乙方全称', 
      popup_column: [
        { title: "供应商名称", key: "label" },
        
      ],
      datas_key: 'query_gys',
      popup_tansferarr: [
        { origin: "label", target: "yfqc" },
        { origin: "value", target: "yfid" },
      ], },
    yfid: { ifdb: true, bt: false, value: "", title: '乙方id', dataIndex: 'yfid', inputType: "none" },
    cclx: { ifdb: true, bt: false, value: "", title: '供货类型', dataIndex: 'cclx', inputType: "view_item" ,
      datas_key: 'dict_gylx',
      popup_tansferarr: [
        { origin: "label", target: "cclx" },
      ],
    },
    fkfs: { ifdb: true, bt: false, value: "", title: '付款方式', dataIndex: 'fkfs', inputType: "view_item" ,
      datas_key: 'dict_fkfs',
      popup_tansferarr: [
        { origin: "label", target: "fkfs" },
      ],
    },
    
    
    gzts: { ifdb: true, bt: false, value: "", title: '挂账天数', dataIndex: 'gzts', inputType: "view_item" },
    shzt: { ifdb: true, bt: false, value: "", title: '审核状态', dataIndex: 'shzt', inputType: "none" },
    
    htgzfj: { ifdb: true, bt: false, value: "", title: '合同盖章附件', dataIndex: 'htgzfj', inputType: "view_fj_item" },
    bz: { ifdb: true, bt: false, value: "", title: '备注', dataIndex: 'bz', inputType: "view_item"},
    
  }
}


/**
 * 
 * @returns 合同台账产品明细mxlist columm
 */
export function use_httz_cpmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: false, bt: false, defalut_v: "",value: "", title: '', dataIndex: 'htid', inputType: "popup_item_datas" ,
      popup_maintitle: '中标明细', 
      popup_column: [
        {  title: '物料名称', key: 'wlmc'},
        {  title: '物料编码', key: 'wlbm'},
        {  title: '规格型号', key: 'ggxh'},
        {  title: '单位', key: 'dw'},
        {  title: '数量', key: 'sl'},
        {  title: '单价', key: 'dj'},
        {  title: '中标供应商名称', key: 'gysmc'},
        {  title: '中标比例', key: 'zbbl'},
        {  title: '中标金额', key: 'zbje'},
        {  title: '备注', key: 'bz'},
      ],
      datas_key: 'query_zbmx',
      popup_tansferarr: [
        { origin: "wlmc", target: "cpmc" },
        { origin: "dw", target: "dw" },
        { origin: "ggxh", target: "cpgg" },
        { origin: "sl", target: "sl" },
        { origin: "dj", target: "dj" },
        { origin: "zbbl", target: "zbfe" },
        { origin: "zbje", target: "je" },
        { origin: "bz", target: "bz" },
      ], 
    },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '产品分类', dataIndex: 'cpfl', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '产品编号', dataIndex: 'cpbh', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '产品名称', dataIndex: 'cpmc', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '单位', dataIndex: 'dw', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '产品规格', dataIndex: 'cpgg', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '中标份额', dataIndex: 'zbfe', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '数量', dataIndex: 'sl', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '单价', dataIndex: 'dj', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '税率', dataIndex: 'tax', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '税额', dataIndex: 'taxvalue', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '金额', dataIndex: 'je', inputType: "input_number_item" },
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '开始日期', dataIndex: 'ksrq', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: usenowDate(),value: usenowDate(), title: '结束日期', dataIndex: 'jsrq', inputType: "date_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '备注', dataIndex: 'bz', inputType: "input_item" },
   
  ]
  return colmuns
}



/**
 * 
 * @returns 合同台账日志明细mxlist columm
 */
export function use_httz_rzmx_column_initformdata() {
  //create_time,update_time 插入方法自动拼接 
  var colmuns = [
    { ifdb: false, bt: false, defalut_v: "", value: "", title: '序号', dataIndex: 'xuhao', inputType: "readonly", width: "61px" },
    { ifdb: true, bt: false, defalut_v: "", value: "", title: 'id', dataIndex: 'id', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: 'mainid', dataIndex: 'mainid', inputType: "none" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '审批人', dataIndex: 'spr', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '审批时间', dataIndex: 'spsj', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '审批意见', dataIndex: 'spyj', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '审批类型', dataIndex: 'splx', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '节点名称', dataIndex: 'jdmc', inputType: "input_item" },
    { ifdb: true, bt: false, defalut_v: "",value: "", title: '意见来源', dataIndex: 'yjly', inputType: "input_number_item" },
   
  ]
  return colmuns
}




